package com.hong.service_product_client;

import com.hong.fy_model.model.product.ProductEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;


@FeignClient("service-product")
public interface ProductFeignClient {
    //为用户创建一个购物车

    @GetMapping("/api/product/getById/{id}")
    public ProductEntity getById(@PathVariable("id")  Integer userId);
}
